package com.example.springbook.demos.web.book.mapper;

import com.example.springbook.demos.web.book.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Q
 * @create 2025-06-12-15:24
 */
@Mapper
public interface UserMapper {
    //开发中, 尽可能避免使用 *
    @Select("select * from user_info where delete_flag=0 and user_name = #{userName}")
    UserInfo queryUserByName(String userName);
}
